package com.luyu.req;

import com.luyu.group.PetGroup;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author luYu
 */
@Data
public class Pet {

    @NotEmpty(message = "宠物名称",groups = {PetGroup.class})
    private  String name;

    @NotNull(message = "是否有项链",groups = {PetGroup.class})
    private Boolean necklaceFlag;


}
